<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/wpui-admin/wp-ewallet-admin/static/plugin/layuimini/lib/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/wpui-admin/wp-ewallet-admin/static/plugin/layuimini/css/public.css" media="all">
    <link rel="stylesheet" href="/wpui-admin/wp-ewallet-admin/static/css/wp.css" media="all">

    <style>
        .item{
            height: 50px;
            border-bottom: 1px solid #dddddd;
            line-height: 50px;
        }

        .key{
            float: left;
        }

        .value{
            float: right;
        }
    </style>
</head>
<body>
<div id="container" class="layuimini-container">
    <div class="layuimini-main">

        <h2 class="wp-module-title">产品详情</h2>
        <div class="wp-module-box wp-module-border">

            <div class="item">
                <div class="key">产品ID</div>
                <div class="value" v-text="finaProd.finaProdId"></div>
            </div>

            <div class="item">
                <div class="key">产品名称</div>
                <div class="value" v-text="finaProd.finaProdName"></div>
            </div>

            <div class="item">
                <div class="key">产品状态</div>
                <div class="value">
                    <a v-show="'1200' === finaProd.status" class="layui-btn layui-btn-xs layui-btn-normal">待上架</a>
                    <a v-show="'1000' === finaProd.status" class="layui-btn layui-btn-xs">已上架</a>
                    <a v-show="'1100' === finaProd.status" class="layui-btn layui-btn-xs layui-btn-primary">已下架</a>
                </div>
            </div>

            <div class="item">
                <div class="key">年华收益</div>
                <div class="value" v-text="Math.round((finaProd.yieldRate*100)*1000)/1000 + '%'"></div>
            </div>

            <div class="item">
                <div class="key">最低起购额</div>
                <div class="value">
                    <span class="value"  style="margin-left: 5px">SHQC</span>
                    <span class="value" v-text="finaProd.minPurchAmount"></span>
                </div>
            </div>

            <div class="item">
                <div class="key">是否允许提前赎回</div>
                <div class="value" v-text="finaProd.isEarlyRedemp === 'Y' ? '是' : '否'"></div>
            </div>

            <div class="item">
                <div class="key">冻结期</div>
                <div class="value">
                    <span class="value"  style="margin-left: 5px">天</span>
                    <span class="value" v-text="finaProd.freePeriod"></span>
                </div>
            </div>

            <div class="item">
                <div class="key">提前赎回本金折扣</div>
                <div class="value" v-text="Math.round((finaProd.discountRate*100)*1000)/1000 + '%'"></div>
            </div>

            <div class="item">
                <div class="key">理财周期</div>
                <div class="value">
                    <span class="value"  style="margin-left: 5px">天</span>
                    <span class="value" v-text="finaProd.finaProdCycle"></span>
                </div>
            </div>
            <!--<div class="item">-->
            <!--<div class="key">返息时间</div>-->
            <!--<div class="value">91天</div>-->
            <!--</div>-->

            <div class="item">
                <div class="key">产品说明</div>
                <div class="value" v-text="finaProd.finaProdDesc"></div>
            </div>

            <div class="item">
                <div class="key">创建人</div>
                <div class="value" v-text="finaProd.createUser"></div>
            </div>

            <div class="item">
                <div class="key">创建时间</div>
                <div class="value" v-text="finaProd.createDate"></div>
            </div>

            <div class="item">
                <div class="key">修改人</div>
                <div class="value" v-text="finaProd.updateUser"></div>
            </div>

            <div class="item">
                <div class="key">修改时间</div>
                <div class="value" v-text="finaProd.updateDate"></div>
            </div>

        </div>

    </div>
</div>

<script src="/wpui-admin/wp-ewallet-admin/static/js/jquery-3.4.1.min.js"></script>
<script src="/wpui-admin/wp-ewallet-admin/static/plugin/layuimini/lib/layui/layui.js" charset="utf-8"></script>
<script src="/wpui-admin/wp-ewallet-admin/module/index/config.js" charset="utf-8"></script>
<script src="/wpui-admin/wp-ewallet-admin/global/wp.js" charset="utf-8"></script>
<script src="/wpui-admin/wp-ewallet-admin/static/js/vue.js" charset="utf-8"></script>
<script src="/wpui-admin/wp-ewallet-admin/static/js/vue-i18n.js" charset="utf-8"></script>
<script src="/wpui-admin/wp-ewallet-admin/global/wp-i18n.js" charset="utf-8"></script>
<script src="/wpui-admin/wp-ewallet-admin/global/wp-project.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

        var vm = new Vue({
            el: '#container',
            i18n: wp.i18n(),
            data: {
                finaProd: {}
            },
            mounted:function(){
                this.finaProd = window.data;
                this.finaProd.createDate = this.finaProd.createDate ? wp.formatDateStr(this.finaProd.createDate, 'yyyy-MM-dd hh:mm:ss') : '';
                this.finaProd.updateDate = this.finaProd.updateDate ? wp.formatDateStr(this.finaProd.updateDate, 'yyyy-MM-dd hh:mm:ss') : '';
            },
            methods: {

            }
        });

    });
</script>

</body>
</html>